package com.chengma.service.impl;

import java.util.List;

import com.chengma.domain.TbTag;
import com.chengma.mapper.TbTagMapper;
import com.chengma.service.ITbTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 标签Service业务层处理
 * 
 * @author tck
 * @date 2025-03-19
 */
@Service
public class TbTagServiceImpl implements ITbTagService
{
    @Autowired
    private TbTagMapper tbTagMapper;

    /**
     * 查询标签
     * 
     * @param id 标签主键
     * @return 标签
     */
    @Override
    public TbTag selectTbTagById(Long id)
    {
        return tbTagMapper.selectTbTagById(id);
    }

    /**
     * 查询标签列表
     * 
     * @param tbTag 标签
     * @return 标签
     */
    @Override
    public List<TbTag> selectTbTagList(TbTag tbTag)
    {
        return tbTagMapper.selectTbTagList(tbTag);
    }

    /**
     * 新增标签
     * 
     * @param tbTag 标签
     * @return 结果
     */
    @Override
    public int insertTbTag(TbTag tbTag)
    {
        return tbTagMapper.insertTbTag(tbTag);
    }

    /**
     * 修改标签
     * 
     * @param tbTag 标签
     * @return 结果
     */
    @Override
    public int updateTbTag(TbTag tbTag)
    {
        return tbTagMapper.updateTbTag(tbTag);
    }

    /**
     * 批量删除标签
     * 
     * @param ids 需要删除的标签主键
     * @return 结果
     */
    @Override
    public int deleteTbTagByIds(Long[] ids)
    {
        return tbTagMapper.deleteTbTagByIds(ids);
    }

    /**
     * 删除标签信息
     * 
     * @param id 标签主键
     * @return 结果
     */
    @Override
    public int deleteTbTagById(Long id)
    {
        return tbTagMapper.deleteTbTagById(id);
    }
}
